package org.marketlive.system.config;

/**
 * Returns the datum associated with the leaf as a string, int, or boolean.
 */

/*
(C) Copyright MarketLive. 2006. All rights reserved.
MarketLive is a trademark of MarketLive, Inc.
Warning: This computer program is protected by copyright law and international treaties.
Unauthorized reproduction or distribution of this program, or any portion of it, may result
in severe civil and criminal penalties, and will be prosecuted to the maximum extent
possible under the law.
*/

public interface IConfigurationLeaf extends IConfigurationNode {

    /**
     * Returns the leaf's associated value as a string.
     * 
     * @return the value associated with the leaf as a string
     */
    String getAsString();
    
    /**
     * Returns the leaf's associated value as an int.
     * 
     * @return the value associated with the leaf as an int
     */
    int getAsInt();
    
    /**
     * Returns the leaf's assocated value as a boolean.
     * 
     * @return the value associated with the leaf as a boolean
     */
    boolean getAsBoolean();
    
}
